package com.xyhua.validator.entity;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

public class UserEntity implements Serializable {
 
	@NotEmpty(message = "用户名不能为空")
	private String username;
	
	@NotEmpty(message = "手机号不能为空")
	@Pattern(regexp = "^1[3|4|5|7|8][0-9]\\d{8}$", message = "手机号格式不正确")
	private String phone;
	

}